export interface GetUserListParams {
  page: number;
  limit: number;
  username: string;
}

/*
"total": 33,
    "items": [
      {
        "id": "string",
        "gmtCreate": "2022-09-28 22:55:49",
        "gmtModified": "2022-09-28 22:55:49",
        "deleted": false,
        "username": "fgfdgdffdh",
        "password": "b45cffe084dd3d20d928bee85e7b0f21",
        "nickName": "string",
        "salt": "string",
        "token": "string",
        "roleName": "测试测试,平台管理员,1111123,全是科技与狠货啊1998,必须是科技和狠活呀"
      }
    ]
*/
export interface SaveUserParams {
  username: string;
  password: string;
  nickName: string;
  // salt: "string";
  // token: "string";
}

export interface UserItem extends SaveUserParams {
  id: string;
  gmtCreate: string;
  gmtModified: string;
  roleName: string;
}

export type UserList = UserItem[];

export interface GetUserListResponse {
  total: number;
  items: UserList;
}

export interface RoleItem {
  id: string;
  // gmtCreate: string;
  // gmtModified: string;
  // deleted: false;
  roleName: string;
  // remark: string;
}

export type RoleList = RoleItem[];

export interface GetUserRoleListResponse {
  assignRoles: RoleList;
  allRolesList: RoleList;
}
